body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f0f1a;
    color: #c9ecf0;
}

.app {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 220px;
    background: #4a186e;
    padding: 20px;
}

.sidebar h2 {
    color: #eba1ff;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 12px;
    margin: 10px 0;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

.sidebar li:hover {
    background: #eba1ff;
    color: black;
}

.content {
    flex: 1;
    padding: 40px;
    position: relative; /* Important for stars */
    overflow: hidden;
}

h1 {
    color: #eba1ff;
}

.spotify-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 12px 20px;
    background: #1db954;
    color: black;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
    font-weight: bold;
}

.spotify-link:hover {
    transform: scale(1.05);
    background: #17a74a;
}

.spotify-icon {
    width: 30px;
    height: 30px;
}

.handwriting {
    margin-top: 20px;
    font-family: 'Great Vibes', cursive;
    font-size: 46px;
    color: #eba1ff;
    line-height: 1.6;
    text-align: center;
}

.handwriting p {
    margin: 20px 0;
}

/* Stars Container */
#stars {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.star {
    position: absolute;
    color: #eba1ff;
    font-size: 14px;
    animation: fall linear forwards;
    opacity: 1;
    z-index: 2;
}

/* Falling animation */
@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(var(--spin));
        opacity: 0;
    }
}

/* ====================== GAMES GRID ====================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);   /* Forces exactly 3 columns */
    gap: 25px;
    margin-top: 30px;
    position: relative;
    z-index: 3;
}

/* Responsive - still keeps 3 columns down to smaller screens */
@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.game-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 4;
}

.game-item:hover {
    background: rgba(235, 161, 255, 0.15);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(235, 161, 255, 0.25);
}

.game-item img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(235, 161, 255, 0.7));
    transition: transform 0.3s;
}

.game-item:hover img {
    transform: scale(1.1);
}

.game-item span {
    color: #c9ecf0;
    font-weight: 500;
    margin-top: 8px;
    font-size: 1.05rem;
}

/* ====================== MATURITA BUTTON ====================== */
.maturita-btn {
    background: linear-gradient(135deg, #6b2b9e, #ba7cff);
    color: white;
    border: none;
    padding: 16px 28px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(186, 124, 255, 0.3);
}

.maturita-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #7f3ac2, #d4a3ff);
    box-shadow: 0 8px 25px rgba(235, 161, 255, 0.4);
}